import {
  Component,
  Input,
  OnInit,
  AfterViewInit,
} from '@angular/core';

declare namespace CodeMirror {
  function fromTextArea(e: any, options?: any): any;
}

@Component({
  selector: 'markdown-block',
  templateUrl: './markdown-block.component.html',
  styleUrls: ['./markdown-block.component.scss'],
})
export class MarkdownBlockComponent implements OnInit, AfterViewInit {
  constructor() {}

  @Input() value!: string;
  @Input() edit:boolean = false;
  
  ngOnInit(): void {}
  ngAfterViewInit(): void {    
  }
}
